package main

import (
	"fmt"
	"unsafe"
)

const (
	Unknown = 0
	Female  = 1
	Male    = 2
)

const (
	a = "abc"
	b = len(a)
	c = unsafe.Sizeof(a)
)

// 显示
const b2 string = "abc"

// 隐式
const b3 = "abc"

const (
	d = iota
	e
	f
)

func main() {

	fmt.Println(b2, b3)

	const LENGTH int = 10
	const WIDTH int = 5
	fmt.Println("面积是：", LENGTH*WIDTH)

	fmt.Println("静态常量:", Unknown, Female, Male)

	fmt.Println(a, b, c)

	fmt.Println(d, e, f)

}
